import com.sun.xml.internal.messaging.saaj.soap.ver1_2.BodyElement1_2Impl;

public class Test1 {
    public static void main(String[] args) {
        User a = new User("张三");
        User b = new User("李四");
        User c = new User("王五");
        User d = new User("李华");
        User e = new User("刘星");
        Group group1 = new Group("信息学部");
        Group group2 = new Group("文理学部");
        group1.Join(a);
        group1.Join(b);
        group1.Join(e);
        group2.Join(c);
        group2.Join(d);
        group2.Join(e);
        Bicycle bicycle1 = new Bicycle("新国标48V粉色电动车", "爱玛", (float) 1000, (float) 800, "九成新", a.getName());
        Bicycle bicycle2 = new Bicycle("60V白色电动车", "雅迪", (float) 1600, (float) 1000, "八成新", d.getName());
        a.post(bicycle1, group1);
        e.browse();
        c.post(bicycle2, group2);
        b.browse();
    }
}
